#include "ollamabackned.h"

OllamaBackned::OllamaBackned(QObject *parent)
    : QObject{parent}
{
    m_backend = "http://127.0.0.1:11434";
}

OllamaBackned &OllamaBackned::instance()
{
    static OllamaBackned backend;
    return backend;
}

QString OllamaBackned::backend()
{
    return OllamaBackned::instance().m_backend;
}

void OllamaBackned::setBackend(const QString &newBackend)
{
    m_backend = newBackend;
}
